package com.yanjingzheng.entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/10/27 11:05
 * @Description 股票抛出类
 **/
public class SellStock implements Order{

    private Stock stock;

    public SellStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.sell();
    }
}
